import * as types from './types';
import api from '../common/js/api/index.js'
import config from '../common/js/config.js'
import common from '../common/js/common.js';
export default {
    setUserInfo({commit},data=null){
        commit(types.SET_USERINFO,data)
    },
    setNetwork({commit},data){
        commit(types.SET_NETWORK,data)
    },
    setSystemInfo({commit},data){
        commit(types.SET_SYSTEMINFO,data)
    },
    setLoginRoute({commit},data){
        commit(types.SET_LOGINROUTE,data)
    },
    setInvoice({commit},data){
        commit(types.SET_INVOICE,data)
    },
    setAddresList({commit}, data = {}){
         commit(types.SET_ADDRESLIST, data)
    },
    setTeam({commit},data){
      commit(types.SET_TEAM, data)
    },
    setClimateList({commit},data){
      commit(types.SET_CLIMATELIST, data)
    },
    setClimate({commit},data){
      commit(types.SET_CLIMATE, data)
    },
    setBindMobile({commit},data){
      commit(types.SET_BINDMOBILE, data)
    },
    setUserLevels({commit}, data){
          commit(types.SET_USERLEVELS, data)
    },
    setTypeList({commit}, data){
          commit(types.SET_TYPELIST, data)
    },
    setIdTest({commit}, data){
          commit(types.SET_IDTEST, data)
    },
}